package 开始的算法算法入门8月.位运算;
// https://leetcode-cn.com/problems/power-of-two/
public class 密2312的幂0824 {
    class Solution {
        public boolean isPowerOfTwo(int n) {
            return n > 0 && (n & (n - 1)) == 0;
        }
    }

}
